package com.ww.java.generic.wildcard;

import java.util.List;

public class SuperTypeWildcards {

	static void writeTo(List<? super Apple> apples) {
		apples.add(new Apple());
		apples.add(new Jonathan());
		// The method add(capture#3-of ? super Apple) in the type List<capture#3-of ? super Apple> 
		// is not applicable for the arguments (Fruit)
//		apples.add(new Fruit());
	}
}
